import { playerStore } from '../../store/index'
Component({
	properties: {
		item: {
			type: Object,
			value: {}
		}
	},
	data: {

	},
	methods: {
		handleSongItemClick(event) {
			const id = event.currentTarget.dataset.id
			if(!id) return
			// 页面跳转
			wx.navigateTo({
				url: `/pages/music-player/index?id=${id}`,
			})
			// 对数据进行请求和其他操作
			playerStore.dispatch('playMusicWithSongIdAction', {
				id
			})
			// 获取播放列表和当前歌曲索引
			
		}
	}
})
